function http({url,type="get",callback}){
    $.ajax({
        url,
        type,
        dataType:"json",
        success: (res)=> {
      
            $(".loading").hide();
            callback(res);
        },
        beforeSend:()=>{
            $(".loading").show()
        }
    })
}
